package com.study.factory;

import com.study.dao.UserDao;
import com.study.dao.impl.UserDaoImpl;
import org.springframework.beans.factory.FactoryBean;

public class UserDaoFactoryBean3 implements FactoryBean<UserDao> {
    //获取实例对象的方法
    public UserDao getObject() throws Exception {
        return new UserDaoImpl();
    }
    //获取实例对象类型的方法
    public Class<?> getObjectType() {
        return UserDao.class;
    }
}
